<template>
    <div>
        <div class="home">
          <div class="top">
            <el-menu
              :default-active="activeIndex2"
              class="el-menu-demo"
              mode="horizontal"
              @select="handleSelect"
              background-color="#4d4d4d"
              text-color="#fff"
              active-text-color="#ffd04b">
              <el-menu-item index="1">首页</el-menu-item>
              <el-submenu index="2">
                <template slot="title">全部商品</template>
                <el-menu-item index="2-1">新品</el-menu-item>
                <el-submenu index="2-2">
                  <template slot="title">上衣</template>
                  <el-menu-item index="2-2-1">T恤</el-menu-item>
                  <el-menu-item index="2-2-2">衬衫</el-menu-item>
                  <el-menu-item index="2-2-3">吊带背心</el-menu-item>
                </el-submenu>
                <el-menu-item index="2-3">防晒衫</el-menu-item>
                <el-menu-item index="2-4">裤子类</el-menu-item>
                <el-menu-item index="2-5">连衣裙</el-menu-item>
                <el-menu-item index="2-6">时尚套装</el-menu-item>
                <el-menu-item index="2-7">粉丝回购专享</el-menu-item>
              </el-submenu>
              <el-submenu index="3">
                <template slot="title">上衣</template>
                <el-menu-item index="2-1">针织衫</el-menu-item>
                <el-menu-item index="2-2">卫衣</el-menu-item>
                <el-menu-item index="2-3">衬衫</el-menu-item>
                <el-menu-item index="2-4">T恤</el-menu-item>
                <el-menu-item index="2-5">防晒衫</el-menu-item>
              </el-submenu>
              <el-submenu index="4">
                <template slot="title">连衣裙</template>
                <el-menu-item index="2-1">连衣裙</el-menu-item>
                <el-menu-item index="2-2">半身裙</el-menu-item>
              </el-submenu>
              <el-menu-item index="5">时尚套装</el-menu-item>
              <el-submenu index="6">
                <template slot="title">裤子类</template>
                <el-menu-item index="2-1">短裤</el-menu-item>
                <el-menu-item index="2-2">牛仔/休闲裤</el-menu-item>
              </el-submenu>
              <el-menu-item index="7">外套</el-menu-item>
            </el-menu>
          </div>
          <div class="bottom">
            <div class="left">
              <el-radio-group v-model="tabPosition" style="margin-bottom: 30px;display: none">
                <el-radio-button label="bottom">bottom</el-radio-button>
              </el-radio-group>

              <el-tabs :tab-position="tabPosition" style="height: 600px;">
                <el-tab-pane label="1"><img src="../assets/01.jpg" alt=""></el-tab-pane>
                <el-tab-pane label="2"><img src="../assets/01.jpg" alt=""></el-tab-pane>
                <el-tab-pane label="3"><img src="../assets/01.jpg" alt=""></el-tab-pane>
                <el-tab-pane label="4"><img src="../assets/01.jpg" alt=""></el-tab-pane>
              </el-tabs>
            </div>
            <div class="center">
              <h3>夏季新款甜美小个子娃娃裙女荷叶袖修身显瘦A字裙气质小众连衣裙</h3>
              <section>
                <p class="p1">价格:<small>￥132.86</small></p>
                <p class="p2">
                  <span class="span1">快抢价:<small>￥78.00</small></span>
                  <span class="span2">评价:<small>3</small>累计销量:<small>16</small></span>
                </p>
                <div class="zz" id="xs">
                  <div class="z1">
                    <span>店铺优惠</span>
                    <span class="span3" id="span4">满199元立减10元<small>领取</small></span>
                    <span class="span3">满299元立减20元<small>领取</small></span>
                    <i id="dj">更多优惠</i>
                  </div>
                  <div class="z2">
                    <span class="span3">满399元立减30元<small>领取</small></span>
                  </div>
                </div>
              </section>
              <p class="pp1">客服:<small class="el-icon-chat-dot-round">联系客服</small></p>
              <section class="s2">
                <span>颜色:</span>
                <img src="../assets/01.jpg" alt="">
              </section>


              <el-form ref="form" :model="form" label-width="80px">
                <el-form-item label="尺码:">
                  <el-radio-group v-model="form.resource">
                    <el-radio label="S"></el-radio>
                    <el-radio label="M"></el-radio>
                    <el-radio label="L"></el-radio>
                  </el-radio-group>
                </el-form-item>
              </el-form>
              <div class="dd1">
                <span class="span1">数量:</span>
                <el-input-number v-model="num" @change="handleChange" :min="1" :max="10" label="描述文字"></el-input-number>
                <span class="span2">库存16件</span>
              </div>
              <div class="dd2">
                <p>
                  <span>立即抢购</span>
                  <span>距结束仅剩32时33分30秒</span>
                </p>
                <p><span><i>+</i>分享</span><span>举报</span></p>
              </div>
              <div class="dd3">
                服务说明:
                <span><i class="el-icon-check"></i>72小时发货</span>
                <span><i class="el-icon-check"></i>7天无理由退货</span>
                <span><i class="el-icon-check"></i>延误必赔</span>
                <span><i class="el-icon-check"></i>退货补运费</span>
                <span><i class="el-icon-check"></i>全国包邮</span>
              </div>
              <p class="pp2">支付方式:<small>支付宝</small><small>微信</small></p>
            </div>
            <div class="right">
              <h4>快抢推荐</h4>
                <ul>
                  <li v-for="aa in show">
                    <img :src="aa.tu_url" alt="">
                    <p>￥{{aa.price}}</p>
                  </li>
                </ul>
            </div>
          </div>
        </div>
    </div>
</template>

<script>
    import mix from '../mix'
    export default {
        data: function () {
            return {
              activeIndex2:'1',
              tabPosition: 'bottom',
              show:mix.data,
              form: {
                resource: '',
              },
              num:1
            }
        },
      mounted(){

      },
        methods: {
          handleSelect(key, keyPath) {
            console.log(key, keyPath);
          },
          onSubmit() {
            console.log('submit!');
          }
        }

    }
</script>

<style scoped>
  .el-menu--horizontal > .el-menu-item{
    line-height: 40px !important;
    height: 40px;
  }
  .el-menu--horizontal >>> .el-submenu .el-submenu__title{
    line-height: 40px !important;
    height: 40px;
  }
  .home{
    z-index: 2 ;
  }
  .top{
    background: #4d4d4d;
  }
  .el-menu-demo {
    width: 65%;
    margin: 0 auto;
  }

  .bottom{
    /*background: orange;*/
    width: 65%;
    height: 700px;
    margin: 0 auto;
    padding-top: 30px;
    overflow: hidden;
  }
  .bottom .left{
    float: left;
    width: 30%;
  }
  .bottom .center{
    float: left;
    width: 45%;
    margin-left: 3%;
    background: #fff;
    text-align: left;
   height: 170px;
    display: inline-block;

  }
  .el-tabs{
    width: 100%;
  }
  .el-tabs img{
    width: 100%;
    height: 600px;

  }
  .bottom .center h3{
    font-size: 22px;
  }
  .bottom .center section{
    background: #f6f6f6;
    color: #b0a5b0;
    font-size: 12px;
  }
  .bottom .center section p{
    /*margin-left:10px;*/
    margin: 10px ;
  }
  .bottom .center section .p1{
    padding-top: 10px;
  }
  .bottom .center section .p1 small{
    padding-left: 20px;
    font-size: 14px;
    text-decoration: line-through;
  }
  .bottom .center section .p2{
    overflow: hidden;
  }
  .bottom .center section .p2 .span1{
    color: red;
    float: left;
  }
  .bottom .center section .p2 .span1 small{
    padding-left: 10px;
   font-size:22px;
    position: relative;
    top: 4px;
  }
  .bottom .center section .p2 .span2{
    float: right;
  }
  .bottom .center section .p2 .span2 small{
    color: #000;
    font-size: 12px;
    margin: 0 10px;
  }
  .bottom .center section .z1{
    overflow: hidden;
    padding-bottom: 5px;
  }
  .bottom .center section .z1 span{
    float: left;
  }
  .bottom .center section .z1 i{
    float: right;
    margin-right: 10px;
  }
  .bottom .center section .zz #span4{
    margin-left: 20px;
  }
  .bottom .center section .zz .span3{
    border: solid 1px #ff5577;
    border-right: none;
    color: #ff5577;
    padding: 3px 0;
    margin-left: 10px;
  }
  .bottom .center section .zz .z2 .span3{
    position: relative;
   top:10px;
    left: 58px;
    display: none;
  }
  .bottom .center section .zz .span3 small{
    background: #ff5577;
    color:#fff;
    /*padding:7px 7px;*/
    padding-top: 7px;
    padding-bottom: 5px;
    padding-left: 7px;
    padding-right: 7px;
   margin-left: 10px;

  }
  .bottom .center section .zz{
    margin-top: 15px;
  }

  .el-form >>> .el-radio__inner{
    border-radius: 0% !important;
  }
  .bottom .center .pp1{
    color:#a699a6;
    font-size: 12px;
    margin: 20px;
  }
  .bottom .center .pp1 small{
    margin-left: 20px;
    border: solid 1px #a699a6;
    padding: 5px 10px;
    color: #000;
  }
  .bottom .center .s2{
    margin-left: 20px;
  }
  .bottom .center .s2 span{
   bottom: 40px;
    position: relative;
  }
  .bottom .center .s2 img{
    width: 50px;
    height: 60px;
    font-size: 12px;
    margin-left: 15px;
  }
  .el-form >>> .el-form-item__label{
    width: 60px !important;
    font-size: 12px;
    color:#a699a6;
  }
  .el-form >>> .el-form-item{
    margin-top: 10px;
    margin-bottom: 10px !important;
  }
  .el-input-number{
    /*width: 100px !important;*/
    line-height: 28px;
    margin-left: 20px;
  }
  .el-input-number >>> .el-input__inner{
    height: 30px !important;
    width: 100px !important;
    padding-left:40px;
  }
  .el-input-number >>> .el-input-number__decrease{
    width: 30px !important;
  }
  .el-input-number >>> .el-input-number__increase{
    width: 30px !important;
    margin-right:80px;
    z-index: 2 !important;

  }
  .bottom .center .dd1 span{
    font-size: 12px;
    color:#a699a6;
  }
  .bottom .center .dd1 .span1{
    margin-left: 20px;
  }
  .bottom .center .dd1 .span2{
    margin-left: -60px;
  }
  .bottom .center .dd2{
      margin-top: 20px;
    margin-left: 50px;
    }
  .bottom .center .dd2 p:first-child span:first-child{
    background: red;
    color: #fff;
    width: 200px;
    height:50px;
    display: inline-block;
    font-size: 18px;
    padding: 13px 60px;
    cursor: pointer;
  }
  .bottom .center .dd2 p:first-child span:last-child{
    font-size: 10px;
    margin-left: 10px;
  }
  .bottom .center .dd2 p:last-child{
    margin: 20px 0;
  }
  .bottom .center .dd2 p:last-child span:first-child{
    border: solid 1px #a699a6;
    border-radius:20px ;
    padding:5px 10px ;
    color:#a699a6;
  }
  .bottom .center .dd2 p:last-child span:first-child i{
    color:red;
    font-size: 20px;
    padding-right: 5px;
  }
  .bottom .center .dd2 p:last-child span:last-child{
    font-size: 14px;
    color:#a699a6;
    margin-left: 10px;
  }
  .bottom .center .dd3{
    font-size: 14px;
    color:#a699a6;
    margin-left: 20px;
  }
  .bottom .center .dd3 span{
    margin-left: 20px;

  }
  .bottom .center .dd3 span:first-child{
    margin-left: -3px;
  }
  .bottom .center .dd3 span:nth-child(5){
    margin-left:60px;

  }
  .bottom .center .dd3 i{
    color:red;
    border: solid 1px red;
    border-radius: 50%;
    padding: 3px;
  }
  .bottom .center .pp2{
    margin-left: 20px;
    font-size: 14px;
    color: #a699a6;
    margin-top: 10px;
  }
  .bottom .center .pp2 small{
    margin-left: 20px;
    font-size: 12px;
    color: #a699a6;
  }
  .bottom .right{
    float: right;
    border-left: solid 1px #ccc;
    width: 18%;
    height: 700px;
    overflow: hidden;
  }
  .bottom .right h4{
    color:#999999;

  }
  .bottom .right li{
    width: 80%;
    margin: 0 auto;
    padding: 8px 0;
  }
  .bottom .right li img{
    width: 100%;
  }
</style>
